package third4lookup;

/**
 * @author: ZhouBert
 * @date: 2020/9/19
 * @description:
 */
public class ClientService {

	private static ClientService clientService = new ClientService();
	private ClientService() {}

	/**
	 * 静态工厂方法 factory-method
	 * @return
	 */
	public static ClientService createInstance() {
		return clientService;
	}

	/**
	 * 实例工厂方法
	 * @return
	 */
	public ClientService createInstance2(){
		return new ClientService();
	}
}
